<?php
 // Gör en XHTML-mall, och spottar ut innehållet där det ska vara.
class PageView {

	public function GetXHTMLStructure($title, $body){
		$xhtmlStructure = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
		<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"sv\" lang=\"sv\">
		<head>
			<title>$title</title>
			<meta http-equiv=\"Content-Type\" content=\"text /html; charset=iso-8859-1\" />
			<link rel=\"stylesheet\" href=\"Styles/style.css\" type=\"text/css\" />
		</head>
		<body>
			<div id=\"container\">
				<div id=\"main\">
					<h1>Labb 3 - Inloggning med databas</h1>
					$body
				</div>
			</div>
		</body>
		</html>";
		
	return $xhtmlStructure;
	}    
}